package com.ziytek.web.citizen.service.itf;

import com.ziytek.web.citizen.model.rsp.LogInResponse;
import com.ziytek.web.citizen.pojo.basic.UserLogin;

/**
 * @author fenghx
 * @version 1.0
 * @className LoginService
 * Description:
 * @date 2024/3/11 18:32
 */
public interface LoginService {
    /**
     * Description: 用户登录
     *
     * @param userName userName
     * @param password password
     * @return String
     */
    LogInResponse login(String userName, String password);

    /**
     * Description: 用户退出
     *
     * @param token token
     * @return boolean
     */
    boolean logOut(String token);

    /**
     * Description: 用户新增
     *
     * @param user user
     * @return int
     */
    int addLogin(UserLogin user);

    /**
     * Description: 用户删除
     *
     * @param user user
     * @return int
     */
    int deleteLogin(UserLogin user);
}
